<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>计算1-100之间不能被7整除的数的和</title>
</head>

<body>
    <script>
        var sum = 0;
        for (i = 1; i <= 100; i++) {
            if (i % 7 !== 0) {
                sum += i;
            }
        }
        console.log("1-100之间不能被7整除的数的和为：" + sum);
    </script>
</body>

</html>